package sctu.edu.java.year2016.team05.zengkun.day20160528.LittleTest2;

/**
 * Created by mike on 2016/5/29.
 */
public class CarFactory {
    public static LittleTest getCar(String name){
        if(name.equalsIgnoreCase("BMW")){
            return  new BMW();
        }
else if(name.equalsIgnoreCase("Benz")){
            return new Benz();

        }
        else{
            return null;
        }

    }
}
